<template>
	<view class="page">
		<Header :title="'付款成功'" :name="false"></Header>
		<view class="big_box">
			<image src="../../static/chengong.png"mode="aspectFill" style="width: 120rpx;height: 120rpx;"></image>
			<view class="wenzi">付款成功</view>
			<view class="sumbox">
				<view class="sumbox_one">
					<view class="" style="color: #999999;">接收方</view>
					<view class="">冒丰数字</view>
				</view>
				<view class="sumbox_one">
					<view class="" style="color: #999999;">支付方式 </view>
					<view class="" v-if="cont!=3">微信支付</view>
					<view class="" v-if="cont==3">代币支付</view>
				</view>
			</view>
		</view>

		<view class="anniu" @click="toorder" v-if="cont==1">查看订单</view>
		<view class="anniu" @click="toAdopt" v-else>查看认养</view>
		<view class="anniu1" @click="goHome">返回首页</view>
	</view>
</template>

<script>
	import Header from '@/components/header/header.vue'
	export default {
		data() {
			return {
				background: {
					backgroundColor: '#D42A1B',
				},
				cont: 1

			}
		},
		onLoad(e) {
			this.cont = e.cont
			uni.removeStorageSync('shareIdCode')
			uni.removeStorageSync('subBeehiveId')
		},
		components:{
			Header
		},
		methods: {
			goHome() {
				uni.reLaunch({
					url: '/pages/home'
				})
			},
			toAdopt() {
				uni.redirectTo({
					url:'/pages/my/adopt/myadopt'
				})
			},
			toorder() {
				uni.redirectTo({
					url: '/pages/my/order/order?status='+''
				})
			}
		}
	}
</script>

<style>
	.page{
		padding-top: 100rpx;
	}
	.anniu1 {
		width: 630rpx;
		height: 90rpx;
		border-radius: 43rpx;
		background-color: #fff;
		color: #D42A1B;
		text-align: center;
		line-height: 90rpx;
		margin-top: 40rpx;
		margin-left: 64rpx;
		font-size: 30rpx;
		border: 1rpx solid #D42A1B;
	}

	.anniu {
		width: 630rpx;
		height: 90rpx;
		border-radius: 43rpx;
		background-color: #D42A1B;
		color: #fff;
		text-align: center;
		line-height: 90rpx;
		margin-top: 80rpx;
		margin-left: 64rpx;
		font-size: 30rpx;
		border: 1rpx solid #D42A1B;
	}

	.sumbox_one {
		display: flex;
		justify-content: space-between;
		border-bottom: #e5e5e5 1rpx solid;
		padding-bottom: 20rpx;
		margin-top: 20rpx;
	}

	.sumbox {
		width: 630rpx;
		margin-left: 40rpx;
		margin-top: 50rpx;
		padding: 20rpx;
		background-color: #fff;
		border-radius: 10rpx;
	}

	.wenzi {
		margin-top: 15rpx;
		font-size: 30rpx;
		font-weight: 600;
	}

	.big_box {
		width: 100%;
		text-align: center;
	}
</style>